<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>小区修改</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__PUBLIC__/css/base.css"/>
        <link type="text/css" href="__ROOT__/data/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
		<script type="text/javascript" src="__ROOT__/data/Validform_v5.1_min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/validate.js"></script>
		<script type="text/javascript">
            $(function(){
                $("#tabs").tabs();
            })
        </script>
    </head>
    <body>
        <div class="now_path">
            <strong>您现在的位置：</strong>
            <a href="#">房屋管理</a><span>></span>
            <a href="__WEB__/admin/news/add_news_show">小区修改</a>
        </div>
		<div class="success_box">所有的选项都填写正确</div>
    	<div class="error_box"></div>
        <div id="tabs" style="width:100%">
            <ul>
                <li><a href="#tabs-1">添加小区</a></li>
				<li><a href="#tabs-2">小区周边</a></li>
				<li><a href="#tabs-3">小区信息</a></li>
            </ul> 
			<form action="__CONTROL__/modify_exe" method="post" class='tujia'>
            <div id="tabs-1">
                <table class="table2">
                    <tr>
                        <th>小区名称：</th>
                        <td><input type="text" name="qname" style="width:360px;" value='{$xiaoqu.qname}' nullmsg="请输入小区名称！" datatype='*'/>
						<div class="Validform_checktip"></div>
						</td>
                    </tr>
					<tr>
                        <th>小区设施：</th>
                        <td>
                        	<a href='__CONTROL__/sheshi_add_show' target='_blank' style=' text-decoration:underline; padding:0 10px;'>增加设施</a>
							<foreach from='$sheshi_row' value='$v'>
                        		<input type='checkbox' name='sheshi[]' value='{$v.sname}' <if value='in_array($v["sname"],$xiaoqu["sheshi"])'> checked='checked'</if>/>{$v.sname}&nbsp;
							</foreach>
                        </td>
                    </tr>
					<tr>
                        <th>设施描述：</th>
                        <td><textarea name='sheshi_desc' style='width:80%; height:100px;'>{$xiaoqu.sheshi_desc}</textarea></td>
                    </tr>
                    <tr>
                        <th>小区介绍：</th>
                        <td><editor name="info" max='20000' height='300' style='' content='{$xiaoqu.info}'/></td>
                    </tr>
					<tr>
                        <th>小区状态：</th>
                        <td>
                        	<input type='radio' name='status' value='1' <if value='$xiaoqu.status eq 1'>checked='checked'</if>/>启用
							<input type='radio' name='status' value='0' <if value='$xiaoqu.status eq 0'>checked='checked'</if>/>禁止
                        </td>
                    </tr>
                </table>
            </div>
			<div id="tabs-2">
				<table class='table2'>
					<tr>
						<td>小区周边介绍</td>
						<td>
							<editor name="zhoubian" max='20000' height='300' style='' content='{$xiaoqu.zhoubian}'/>
						</td>
					</tr>
				</table>
			</div>
			<div id="tabs-3">
				<table class='table2'>
					<tr>
						<td>建成年份:</td>
						<td><input type="text" name="jiancheng" style="width:300px;" value='{$xiaoqu.jiancheng}'/></td>
					</tr>
					<tr>
						<td>绿化率:</td>
						<td><input type="text" name="lvhua" style="width:300px;" value='{$xiaoqu.lvhua}'/></td>
					</tr>
					<tr>
						<td>开发商:</td>
						<td><input type="text" name="kaifa" style="width:300px;" value='{$xiaoqu.kaifa}'/></td>
					</tr>
					<tr>
						<td>物业公司:</td>
						<td><input type="text" name="wuye" style="width:300px;" value='{$xiaoqu.wuye}'/></td>
					</tr>
					<tr>
						<td>停车费:</td>
						<td><input type="text" name="tingche" style="width:300px;" value='{$xiaoqu.tingche}'/></td>
					</tr>
				</table>
			</div>
			<input type='hidden' name='qid' value='{$hd.get.qid}' />
			<input type="submit" class="submit" value="添加文章" name='submit'/>
			</form>
        </div>
    </body>
</html>
